﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPage.Master" 
CodeBehind="wfProveedorBnd.aspx.cs" Inherits="CO.wfProveedorBnd" %>

<%@ Import Namespace="Texfina.Core.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

<%--    <link href="../Styles/General.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/token-input-facebook.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
   
    <script src="../Scripts/jquery.tokeninput.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.purr.js" type="text/javascript"></script>
    <script src="../Scripts/General.js" type="text/javascript"></script>--%>



    <script type="text/javascript">
        window.onload = function () {
            this.ResizeGrid();
            this.MessageOnPostback();
        }

        function ResizeGrid() {
            internalGridResize("<%= gvListar.ClientID %>");
        }

        function panelOnUpdating() {
            updatePanelAnimationUpdating();
        }

        function panelOnUpdated() {
            ResizeGrid();
            updatePanelAnimationUpdated();
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="ToolBar">
        <asp:Menu ID="mnuToolbar" runat="server" CssClass="ToolBarControl" Orientation="Horizontal" onmenuitemclick="mnuToolbar_MenuItemClick" >
            <Items>
                <asp:MenuItem Text="Nuevo" Value="_BTTNEW" ImageUrl="../Images/Icons/Enabled/ArrowDoc.png">
                </asp:MenuItem>
                <asp:MenuItem Text="Salir" Value="_BTTEXIT" ImageUrl="../Images/Icons/Enabled/BACK.png">
                </asp:MenuItem>
            </Items>
        </asp:Menu>
    </div>
    <asp:UpdatePanel ID="updatePanel1" runat="Server">
        <ContentTemplate>
            <div class="DataHeader">
                <table id="TableDataHeader" cellpadding="0" cellspacing="0">
                    <tr>
                        <td colspan="9">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>

                        </td>
                        <td>
                            Codigo
                        </td>
                            <td>
                                <esd:esdTextBox ID="txtCodigo" runat="server"></esd:esdTextBox>
                        </td>
                            <td>
                        </td>
                            <td>

                        </td>
                            <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            Cliente
                        </td>
                        <td>
                            <asp:DropDownList ID="dpCliente" runat="server">
                                <asp:ListItem Value=" ">Seleccionar</asp:ListItem>
                                <asp:ListItem Value="1">SI</asp:ListItem>
                                <asp:ListItem Value="0">NO</asp:ListItem>
                            </asp:DropDownList>
                    
                            </td>
                        <td>
                            Proveedor
                        </td>
                        <td>
                            <asp:DropDownList ID="dpProveedor" runat="server">
                                <asp:ListItem Value=" ">Seleccionar</asp:ListItem>
                                <asp:ListItem Value="0">SI</asp:ListItem>
                                <asp:ListItem Value="1">NO</asp:ListItem>
                            </asp:DropDownList>
                            </td>
                        <td colspan="2">
                            &nbsp;
                        </td>
                        <td>
                                <asp:Button ID="btnLimpiar" runat="server"  Text="Limpiar" 
                                CssClass="esdButtonStyle" Width="80px" />
                            </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="9">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            RUC 
                        </td>
                        <td>
                            <asp:TextBox ID="txtRuc" runat="server" CssClass="esdTextBox" Width="100px"></asp:TextBox>
                        </td>
                        <td>
                            Razon Social
                        </td>
                        <td>
                            <asp:TextBox ID="txtRazonSoc" runat="server" CssClass="esdTextBox" width="300px"></asp:TextBox>
                        </td>
                        <td colspan="2">
                            &nbsp;
                        </td>
                        <td>
                            <asp:Button ID="btnBuscar" runat="server" onclick="btnBuscar_Click" Text="Buscar" CssClass="esdButtonStyle" Width="80px" />
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="9">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            Doc. Identidad :
                        </td>
                        <td>
                            <asp:TextBox ID="txtDocIdent" runat="server" CssClass="esdTextBox" Width="100px"></asp:TextBox>
                        </td>
                        <td colspan="3">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="9">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
            <div class="DataDetail">
                 <esd:esdGridView ID="gvListar"  CssClass="esdGridView" runat="server" ScrollWidth="100%"
                    Width="100%" ShowHeaderWhenEmpty="True" AutoGenerateColumns="False" DataKeyNames="RowNumber"
                      onrowcommand="gvListar_RowCommand" >
                <AlternatingRowStyle CssClass="esdGridAlternativeRowStyle" />
                <Columns>
                    <asp:BoundField DataField="RowNumber" HeaderText="N°" />
                        <asp:TemplateField HeaderText="Codigo">
                            <ItemStyle HorizontalAlign="Center" Width="70px" CssClass="etiqueta"></ItemStyle>
                            <ItemTemplate>
                                <asp:LinkButton ID="lblOCCodigo" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Codigo") %>'
                                    CommandArgument='<%# Bind("Codigo") %>' CommandName="Detalle" CssClass="textoTabulado"
                                    CausesValidation="false" ToolTip="Consulta Proveedor"></asp:LinkButton>
                            </ItemTemplate>
                            </asp:TemplateField>

                    <asp:BoundField DataField="Razon Social" HeaderText="Razon Social" />
                    <asp:BoundField DataField="Apellido" HeaderText="Apellido" />
                    <asp:BoundField DataField="Nro Doc." HeaderText="Nro Doc." />
                    <asp:BoundField DataField="RUC" HeaderText="RUC" />
                      
                </Columns>
                    <HeaderStyle CssClass="esdGridHeaderStyle" />
                    <PagerStyle CssClass="gridPagerStyle" />
                    <RowStyle CssClass="esdGridRowStyle" />
                    <SelectedRowStyle CssClass="esdGridSelectedRowStyle" />
                </esd:esdGridView>
            </div>
            <div align="center">
                <asp:Label ID="Message" runat="server"></asp:Label>
            </div>
    </ContentTemplate>
</asp:UpdatePanel>
<ajax:UpdatePanelAnimationExtender ID="upae" BehaviorID="animation" runat="server"
    TargetControlID="updatePanel1">
    <animations>
        <OnUpdating>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdating();" />  
        </Parallel>
        </OnUpdating>
        <OnUpdated>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdated();" /> 
        </Parallel> 
        </OnUpdated>
    </animations>
</ajax:UpdatePanelAnimationExtender>
</asp:Content>
